package cn.fastoo.common.entity.product;

import cn.fastoo.common.sampleframe.entity.BaseEntity;
import com.alibaba.fastjson.annotation.JSONField;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.Table;
import java.util.Date;

/**
 * Created by lowkey on 17/7/24.
 */
@Table(name = "product_sku")
public class ProductSku extends BaseEntity {

    @Column(name = "product_id")
    private Long productId;

    @Column(name = "code")
    private String code;

    @Column(name = "code_name")
    private String codeName;

    @Column(name = "biz_code")
    private String bizCode;

    @Column(name = "fee")
    private Double fee;


    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getCodeName() {
        return codeName;
    }

    public void setCodeName(String codeName) {
        this.codeName = codeName;
    }

    public Double getFee() {
        if(fee==null){
            return 0.0;
        }
        return fee;
    }

    public void setFee(Double fee) {
        this.fee = fee;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public String getBizCode() {
        return bizCode;
    }

    public void setBizCode(String bizCode) {
        this.bizCode = bizCode;
    }
}
